
import $ from 'jquery';

export function clean(str) {
  let dom = $(str);
  dom = $(dom);
  let atoms = dom.find('strong');
  for (let index = 0; index < atoms.length; index++) {
    let atom = atoms[index];
    if (atom.className.indexOf('quill-atom') > -1) {
      atom.innerHTML = `${atom.innerText}`;
    }
  }
  let html = '';
  for (let j = 0; j < dom.length; j++) {
    const element = dom[j];
    html += element.outerHTML;
    
  }
  return html;
}